/*
 * @Descripttion: 
 * @version: 
 * @Author: cyj
 * @Date: 2022-12-05 23:42:34
 */
//显示加载的页面效果
import { ElLoading  } from 'element-plus'

//定义一个实例
let loading
//开始加载
export function startLoading(text='拼命加载中...'){
    loading = ElLoading.service({
        lock:true,
        text,
        background: "rgba(0,0,0,0)",
    })
}
//结束加载
export function endLoading(){
    loading.close()
}